import QtQuick
import QtQuick.Particles

Rectangle {
    width: 400
    height: 400
    color: "black"

    ParticleSystem {
        id: snowSystem
        anchors.fill: parent

        ImageParticle {
            source: "qrc:/images/snowflake.png"
            color: "#FFFFFF"
            alpha: 0.8
            alphaVariation: 0.2
            rotationVariation: 180
        }

Emitter {
    system: snowSystem
    width: parent.width
    height: 1
    anchors.top: parent.top

    emitRate: 30
    lifeSpan: 4000
    size: 16
    sizeVariation: 8
    velocity: AngleDirection {
        angle: 90
        angleVariation: 15
        magnitude: 50
        magnitudeVariation: 20
    }
    acceleration: PointDirection {
        y: 20
        xVariation: 10
    }
}

        Wander {
            system: snowSystem
            xVariance: 30
            pace: 100
        }
    }
}
